<template>
  <div class="theatre">
    <BigTitle :title="title" data_content="SIDE SHOW" />
    <div class="theatre_list_box">
      <div class="theatre_list">
        <div class="theatre_box" v-for="item in theatreAnime.list" :key="item.id">
          <TheatreBlock :src="item.cover" :id="item.id" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import BigTitle from '@/components/ToHome/BigTitle.vue'
import TheatreBlock from '../../../components/Block/TheatreBlock.vue'

export default {
  name: 'TheatreAnime',
  components: {
    BigTitle,
    TheatreBlock
  },
  props: {
    title: {
      default: ''
    },
    theatreAnime: {
      default: []
    }
  },
  setup() {}
}
</script>

<style lang="scss" scoped>
.theatre {
  width: 100%;
  &_list_box {
    position: relative;
    width: 100%;
    height: 280px;
  }
  &_list {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow: hidden;
    .theatre_box {
      cursor: pointer;
      height: 280px;
      width: 180px;
      border-radius: 15px;
      overflow: hidden;
    }
  }
}
</style>
